home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010306-20010921
/
000165_arthur.marsh@adelaide.edu.au_Tue May 22 10:49:06 EDT 2001.msg
< prev
next >
Wrap
Text File
|
2001-09-20
|
2KB
|
36 lines
Article: 12461 of comp.protocols.kermit.misc
Message-ID: <3B09E25B.8117DD48@adelaide.edu.au>
Date: Tue, 22 May 2001 13:21:55 +0930
From: Arthur Marsh <arthur.marsh@adelaide.edu.au>
Organization: The University of Adelaide
X-Mailer: Mozilla 4.5 [en]C-CCK-MCD (WinNT; I)
X-Accept-Language: en,pdf
MIME-Version: 1.0
Newsgroups: comp.protocols.kermit.misc
Subject: testing a TCP port and logging response
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: arthur.its.adelaide.edu.au
X-Trace: 22 May 2001 13:21:55 +0950, arthur.its.adelaide.edu.au
Lines: 17
Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!news.verio.net!nntp.frontiernet.net!nntp.gblx.net!europa.netcrusader.net!152.163.239.129!portc01.blue.aol.com!news.stealth.net!intgwpad.nntp.telstra.net!news1.optus.net.au!optus!yorrell.saard.net!hakea.services.adelaide.edu.au!arthur.its.adelaide.edu.au
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12461
Hi, when using C-Kermit on a Unix machine to check that a service is
alive by running:
echo 'set port localhost 99'|kermit
the shell (ksh on Tru64 4.0E) seems to show the same status both for
successful connections and "connection refused" situations.
How would one set C-Kermit to test a TCP port, (waiting only a few
seconds for a response and not a long timeout), return a success/failure
status to the calling shell, and save any response from the connection
attempt to a file?
--
Arthur Marsh, Network Support Officer, Information Technology Services
The University of Adelaide SA 5005 Australia
Ph: +61 8 8303 6109, Mobile: +61 414 260 077